home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-05-22 | 8.1 KB | [ TEXT/MSET]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
You can browse this item here: AppleEvents
Confidence Program Detection Match Type Support
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
1%
dexvert
Text File (text/txt)
fallback
Supported
100%
file
MacBinary II, inited, Sat May 21 21:38:43 1994, modified Sat May 21 21:38:43 1994, creator 'MSET', type ASCII, 7808 bytes "AppleEvents" , at 0x1f00 286 bytes resource
default (weak)
99%
file
data
default
74%
TrID
Macintosh plain text (MacBinary)
default
25%
TrID
MacBinary 2
default (weak)
100%
lsar
MacBinary
default
id metadata key value macFileType [ TEXT] macFileCreator [ MSET]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 0b 41 70 70 6c 65 45 | 76 65 6e 74 73 00 00 00 |..AppleE|vents...| |00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 54 45 58 54 4d 53 45 | 54 01 00 00 00 00 00 00 |.TEXTMSE|T.......| |00000050| 00 00 00 00 00 1e 80 00 | 00 01 1e aa 04 68 23 aa |........|.....h#.| |00000060| 04 68 23 00 00 08 00 00 | 00 00 00 00 00 00 00 00 |.h#.....|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 af 0e 00 00 |........|........| |00000080| 5c 20 31 30 44 65 63 39 | 33 20 44 42 48 20 20 69 |\ 10Dec9|3 DBH i| |00000090| 6e 69 74 69 61 6c 20 76 | 65 72 73 69 6f 6e 0d 5c |nitial v|ersion.\| |000000a0| 20 31 32 46 65 62 39 34 | 20 44 42 48 20 61 64 64 | 12Feb94| DBH add| |000000b0| 65 64 20 70 72 6f 70 65 | 72 20 64 69 73 70 6f 73 |ed prope|r dispos| |000000c0| 61 6c 20 6f 66 20 41 70 | 70 6c 65 45 76 65 6e 74 |al of Ap|pleEvent| |000000d0| 20 61 6e 64 20 52 65 70 | 6c 79 20 76 69 61 20 41 | and Rep|ly via A| |000000e0| 45 44 69 73 70 6f 73 65 | 44 65 73 63 20 61 74 20 |EDispose|Desc at | |000000f0| 65 61 63 68 20 61 6e 64 | 0d 5c 20 65 76 65 72 79 |each and|.\ every| |00000100| 20 74 69 6d 65 20 77 65 | 20 73 65 6e 64 20 61 6e | time we| send an| |00000110| 20 41 70 70 6c 65 45 76 | 65 6e 74 2e 20 42 65 66 | AppleEv|ent. Bef| |00000120| 6f 72 65 2c 20 74 68 69 | 73 20 77 61 73 20 63 61 |ore, thi|s was ca| |00000130| 75 73 69 6e 67 20 6d 65 | 6d 6f 72 79 20 74 6f 20 |using me|mory to | |00000140| 62 65 20 63 6f 6e 73 75 | 6d 65 64 20 61 6e 64 20 |be consu|med and | |00000150| 6e 65 76 65 72 0d 5c 20 | 66 72 65 65 64 20 61 74 |never.\ |freed at| |00000160| 20 65 61 63 68 20 73 65 | 6e 64 2e 0d 20 0d 20 5c | each se|nd.. . \| |00000170| 20 49 74 20 69 73 20 69 | 6e 74 65 72 65 73 74 69 | It is i|nteresti| |00000180| 6e 67 20 74 68 61 74 2c | 20 77 69 74 68 20 74 68 |ng that,| with th| |00000190| 69 73 20 73 63 68 65 6d | 65 20 61 74 20 6c 65 61 |is schem|e at lea| |000001a0| 73 74 2c 20 69 74 20 69 | 73 0d 20 5c 20 6e 6f 74 |st, it i|s. \ not| |000001b0| 20 6e 65 63 65 73 73 61 | 72 79 20 74 6f 20 63 72 | necessa|ry to cr| |000001c0| 65 61 74 65 20 61 6e 64 | 20 64 69 73 70 6f 73 65 |eate and| dispose| |000001d0| 20 74 68 65 20 64 65 73 | 63 72 69 70 74 69 6f 6e | the des|cription| |000001e0| 20 72 65 63 6f 72 64 20 | 51 45 64 65 73 63 20 61 | record |QEdesc a| |000001f0| 74 20 65 61 63 68 20 73 | 65 6e 64 2e 0d 0d 5c 20 |t each s|end...\ | |00000200| 53 65 65 20 67 65 6e 65 | 72 61 6c 20 63 6f 6d 6d |See gene|ral comm| |00000210| 65 6e 74 73 20 61 74 20 | 74 68 65 20 65 6e 64 20 |ents at |the end | |00000220| 6f 66 20 74 68 69 73 20 | 66 69 6c 65 2e 0d 0d 0d |of this |file....| |00000230| 5c 20 54 68 69 73 20 41 | 70 70 6c 65 45 76 65 6e |\ This A|ppleEven| |00000240| 74 20 63 6c 61 73 73 20 | 69 73 20 61 74 20 74 68 |t class |is at th| |00000250| 65 20 6d 6f 6d 65 6e 74 | 20 67 65 61 72 65 64 20 |e moment| geared | |00000260| 74 6f 20 73 65 6e 64 69 | 6e 67 20 41 45 73 20 74 |to sendi|ng AEs t| |00000270| 6f 0d 5c 20 51 75 69 63 | 6b 20 45 64 69 74 2e 20 |o.\ Quic|k Edit. | |00000280| 20 42 75 74 20 69 74 20 | 77 6f 75 6c 64 6e 27 74 | But it |wouldn't| |00000290| 20 62 65 20 74 6f 6f 20 | 68 61 72 64 20 74 6f 20 | be too |hard to | |000002a0| 6d 61 6b 65 20 69 74 20 | 6d 6f 72 65 20 67 65 6e |make it |more gen| |000002b0| 65 72 61 6c 2e 0d 0d 0d | 3a 63 6c 61 73 73 20 41 |eral....|:class A| |000002c0| 45 44 65 73 63 20 73 75 | 70 65 72 7b 20 6f 62 6a |EDesc su|per{ obj| |000002d0| 65 63 74 20 7d 0d 0d 72 | 65 63 6f 72 64 0d 7b 09 |ect }..r|ecord.{.| |000002e0| 6c 6f 6e 67 77 6f 72 64 | 09 64 65 73 63 72 69 70 |longword|.descrip| |000002f0| 74 6f 72 54 79 70 65 0d | 09 68 61 6e 64 6c 65 09 |torType.|.handle.| |00000300| 09 64 61 74 61 48 61 6e | 64 6c 65 09 09 5c 20 66 |.dataHan|dle..\ f| |00000310| 69 72 73 74 20 34 20 62 | 79 74 65 73 20 6f 66 20 |irst 4 b|ytes of | |00000320| 68 61 6e 64 6c 65 20 77 | 69 6c 6c 20 3d 20 4d 53 |handle w|ill = MS| |00000330| 45 54 20 61 66 74 65 72 | 20 6e 65 77 3a 0d 09 76 |ET after| new:..v| |00000340| 61 72 09 09 09 64 61 74 | 61 50 74 72 0d 7d 0d 0d |ar...dat|aPtr.}..| |00000350| 3a 6d 20 63 6c 61 73 73 | 69 6e 69 74 3a 0d 09 27 |:m class|init:..'| |00000360| 74 79 70 65 20 4d 53 45 | 54 20 70 75 74 3a 20 64 |type MSE|T put: d| |00000370| 61 74 61 50 74 72 09 5c | 20 70 75 74 20 51 45 20 |ataPtr.\| put QE | |00000380| 63 72 65 61 74 6f 72 20 | 73 69 67 6e 61 74 75 72 |creator |signatur| |00000390| 65 20 69 6e 20 61 20 64 | 61 74 61 50 74 72 0d 09 |e in a d|ataPtr..| |000003a0| 3b 6d 0d 0d 3a 6d 20 6e | 65 77 3a 0d 09 77 6f 72 |;m..:m n|ew:..wor| |000003b0| 64 30 09 09 5c 20 72 6f | 6f 6d 20 66 6f 72 20 72 |d0..\ ro|om for r| |000003c0| 65 73 75 6c 74 0d 09 27 | 74 79 70 65 20 73 69 67 |esult..'|type sig| |000003d0| 6e 09 5c 20 74 79 70 65 | 41 70 70 6c 53 69 67 6e |n.\ type|ApplSign| |000003e0| 61 74 75 72 65 0d 09 61 | 64 64 72 3a 20 64 61 74 |ature..a|ddr: dat| |000003f0| 61 50 74 72 0d 09 38 09 | 09 09 5c 20 64 61 74 61 |aPtr..8.|..\ data| |00000400| 53 69 7a 65 0d 09 5e 62 | 61 73 65 09 09 5c 20 56 |Size..^b|ase..\ V| |00000410| 41 52 20 72 65 73 75 6c | 74 20 2d 3e 20 6f 75 72 |AR resul|t -> our| |00000420| 20 72 65 63 6f 72 64 0d | 09 63 61 6c 6c 20 41 45 | record.|.call AE| |00000430| 43 72 65 61 74 65 44 65 | 73 63 0d 09 69 2d 3e 6c |CreateDe|sc..i->l| |00000440| 0d 09 30 3d 20 6e 6f 74 | 20 49 46 20 2e 22 20 66 |..0= not| IF ." f| |00000450| 61 69 6c 65 64 20 74 6f | 20 63 72 65 61 74 65 20 |ailed to| create | |00000460| 41 45 20 44 65 73 63 20 | 72 65 63 6f 72 64 22 20 |AE Desc |record" | |00000470| 54 48 45 4e 0d 09 3b 6d | 0d 0d 3a 6d 20 72 65 6c |THEN..;m|..:m rel| |00000480| 65 61 73 65 3a 0d 09 77 | 6f 72 64 30 09 09 5c 20 |ease:..w|ord0..\ | |00000490| 72 6f 6f 6d 20 66 6f 72 | 20 72 65 73 75 6c 74 0d |room for| result.| |000004a0| 09 5e 62 61 73 65 09 09 | 5c 20 56 41 52 20 74 68 |.^base..|\ VAR th| |000004b0| 65 41 45 44 65 73 63 20 | 2d 3e 20 6f 75 72 20 72 |eAEDesc |-> our r| |000004c0| 65 63 6f 72 64 0d 09 63 | 61 6c 6c 20 41 45 44 69 |ecord..c|all AEDi| |000004d0| 73 70 6f 73 65 44 65 73 | 63 20 20 5c 20 68 65 72 |sposeDes|c \ her| |000004e0| 65 20 77 65 20 61 63 74 | 75 61 6c 6c 79 20 75 73 |e we act|ually us| |000004f0| 65 20 41 45 44 69 73 70 | 6f 73 65 44 65 73 63 20 |e AEDisp|oseDesc | |00000500| 74 6f 20 64 69 73 70 6f | 73 65 20 61 6e 20 41 45 |to dispo|se an AE| |00000510| 44 65 73 63 0d 09 69 2d | 3e 6c 0d 09 20 30 3d 20 |Desc..i-|>l.. 0= | |00000520| 6e 6f 74 20 49 46 20 2e | 22 20 66 61 69 6c 65 64 |not IF .|" failed| |00000530| 20 74 6f 20 64 69 73 70 | 6f 73 65 20 41 45 20 44 | to disp|ose AE D| |00000540| 65 73 63 20 72 65 63 6f | 72 64 22 20 54 48 45 4e |esc reco|rd" THEN| |00000550| 0d 09 3b 6d 0d 0d 3b 63 | 6c 61 73 73 0d 0d 41 45 |..;m..;c|lass..AE| |00000560| 44 65 73 63 20 51 45 64 | 65 73 63 0d 0d 0d 0d 76 |Desc QEd|esc....v| |00000570| 61 72 69 61 62 6c 65 20 | 64 75 6d 6d 79 52 65 70 |ariable |dummyRep| |00000580| 6c 79 20 31 36 20 61 6c | 6c 6f 74 0d 0d 3a 63 6c |ly 16 al|lot..:cl| |00000590| 61 73 73 20 41 70 70 6c | 65 45 76 65 6e 74 20 73 |ass Appl|eEvent s| |000005a0| 75 70 65 72 7b 20 6f 62 | 6a 65 63 74 20 7d 0d 0d |uper{ ob|ject }..| |000005b0| 72 65 63 6f 72 64 0d 7b | 09 69 6e 74 09 77 68 61 |record.{|.int.wha| |000005c0| 74 0d 09 76 61 72 09 6d | 63 6c 61 73 73 0d 09 76 |t..var.m|class..v| |000005d0| 61 72 09 77 68 65 6e 0d | 09 76 61 72 09 6d 49 44 |ar.when.|.var.mID| |000005e0| 0d 09 69 6e 74 09 6d 6f | 64 69 66 69 65 72 73 0d |..int.mo|difiers.| |000005f0| 09 76 61 72 20 74 68 65 | 43 6c 61 73 73 09 5c 20 |.var the|Class.\ | |00000600| 77 69 6c 6c 20 62 65 20 | 27 74 79 70 65 20 4f 50 |will be |'type OP| |00000610| 45 4e 20 6f 72 20 54 45 | 58 54 20 66 6f 72 20 6e |EN or TE|XT for n| |00000620| 6f 77 2e 20 20 43 6f 75 | 6c 64 20 62 65 20 6f 74 |ow. Cou|ld be ot| |00000630| 68 65 72 20 74 68 69 6e | 67 73 20 6c 61 74 65 72 |her thin|gs later| |00000640| 2e 0d 7d 0d 0d 5c 20 3a | 6d 20 63 6c 61 73 73 69 |..}..\ :|m classi| |00000650| 6e 69 74 3a 20 5c 20 31 | 32 46 65 62 39 34 20 44 |nit: \ 1|2Feb94 D| |00000660| 42 48 20 20 20 6e 65 63 | 65 73 73 61 72 79 3f 3f |BH nec|essary??| |00000670| 3f 20 20 61 70 70 61 72 | 65 6e 74 6c 79 20 6e 6f |? appar|ently no| |00000680| 74 0d 5c 09 6b 6f 6e 73 | 74 20 6b 48 69 67 68 4c |t.\.kons|t kHighL| |00000690| 65 76 65 6c 45 76 65 6e | 74 20 70 75 74 3a 20 77 |evelEven|t put: w| |000006a0| 68 61 74 20 3b 6d 0d 0d | 5c 20 47 75 65 73 73 20 |hat ;m..|\ Guess | |000006b0| 77 68 61 74 3f 20 20 57 | 65 20 68 61 76 65 20 74 |what? W|e have t| |000006c0| 6f 20 64 69 73 70 6f 73 | 65 20 6f 66 20 6f 75 72 |o dispos|e of our| |000006d0| 20 41 70 70 6c 65 45 76 | 65 6e 74 20 41 46 54 45 | AppleEv|ent AFTE| |000006e0| 52 20 45 41 43 48 20 53 | 45 4e 44 20 21 0d 5c 20 |R EACH S|END !.\ | |000006f0| 61 6e 64 20 77 65 20 6d | 75 73 74 20 75 73 65 20 |and we m|ust use | |00000700| 41 45 44 69 73 70 6f 73 | 65 44 65 73 63 2e 20 20 |AEDispos|eDesc. | |00000710| 54 68 69 73 20 77 61 73 | 20 6e 6f 74 20 69 6d 6d |This was| not imm| |00000720| 65 64 69 61 74 65 6c 79 | 20 6f 62 76 69 6f 75 73 |ediately| obvious| |00000730| 20 74 6f 20 6d 65 20 66 | 72 6f 6d 20 49 4d 2e 0d | to me f|rom IM..| |00000740| 5c 20 41 6c 73 6f 2c 20 | 77 65 20 6d 75 73 74 20 |\ Also, |we must | |00000750| 64 69 73 70 6f 73 65 20 | 6f 66 20 6f 75 72 20 72 |dispose |of our r| |00000760| 65 70 6c 79 2c 20 61 67 | 61 69 6e 20 75 73 69 6e |eply, ag|ain usin| |00000770| 67 20 41 45 44 69 73 70 | 6f 73 65 44 65 73 63 2e |g AEDisp|oseDesc.| |00000780| 20 20 41 45 44 69 73 70 | 6f 73 65 44 65 73 63 20 | AEDisp|oseDesc | |00000790| 73 65 65 6d 73 20 74 6f | 20 62 65 0d 5c 20 74 68 |seems to| be.\ th| |000007a0| 65 20 75 6e 69 76 65 72 | 73 61 6c 20 64 69 73 70 |e univer|sal disp| |000007b0| 6f 7a 2d 61 6c 6c 20 66 | 6f 72 20 41 45 20 74 68 |oz-all f|or AE th| |000007c0| 69 6e 67 73 2e 20 20 54 | 68 65 20 70 65 6e 61 6c |ings. T|he penal| |000007d0| 74 79 20 66 6f 72 20 6e | 6f 74 20 64 6f 69 6e 67 |ty for n|ot doing| |000007e0| 20 74 68 69 73 20 69 73 | 20 6c 6f 73 74 20 68 65 | this is| lost he| |000007f0| 61 70 20 61 74 20 65 76 | 65 72 79 0d 5c 20 73 65 |ap at ev|ery.\ se| |00000800| 6e 64 2e 0d 0d 3a 6d 20 | 72 65 6c 65 61 73 65 3a |nd...:m |release:| |00000810| 09 20 5c 20 31 32 46 65 | 62 39 34 20 44 42 48 0d |. \ 12Fe|b94 DBH.| |00000820| 09 77 6f 72 64 30 09 5c | 20 72 6f 6f 6d 20 66 6f |.word0.\| room fo| |00000830| 72 20 72 65 73 75 6c 74 | 0d 09 5e 62 61 73 65 20 |r result|..^base | |00000840| 63 61 6c 6c 20 41 45 44 | 69 73 70 6f 73 65 44 65 |call AED|isposeDe| |00000850| 73 63 0d 09 69 2d 3e 6c | 0d 09 20 30 3d 20 6e 6f |sc..i->l|.. 0= no| |00000860| 74 20 49 46 20 2e 22 20 | 66 61 69 6c 65 64 20 74 |t IF ." |failed t| |00000870| 6f 20 64 69 73 70 6f 73 | 65 20 6f 66 20 41 70 70 |o dispos|e of App| |00000880| 6c 65 45 76 65 6e 74 22 | 20 54 48 45 4e 0d 09 0d |leEvent"| THEN...| |00000890| 09 77 6f 72 64 30 09 5c | 20 72 6f 6f 6d 20 66 6f |.word0.\| room fo| |000008a0| 72 20 72 65 73 75 6c 74 | 0d 09 64 75 6d 6d 79 52 |r result|..dummyR| |000008b0| 65 70 6c 79 20 63 61 6c | 6c 20 41 45 44 69 73 70 |eply cal|l AEDisp| |000008c0| 6f 73 65 44 65 73 63 0d | 09 69 2d 3e 6c 0d 09 20 |oseDesc.|.i->l.. | |000008d0| 30 3d 20 6e 6f 74 20 49 | 46 20 2e 22 20 66 61 69 |0= not I|F ." fai| |000008e0| 6c 65 64 20 74 6f 20 64 | 69 73 70 6f 73 65 20 6f |led to d|ispose o| |000008f0| 66 20 52 65 70 6c 79 22 | 20 54 48 45 4e 0d 09 3b |f Reply"| THEN..;| |00000900| 6d 0d 0d 3a 6d 20 6e 65 | 77 3a 09 7b 20 74 68 65 |m..:m ne|w:.{ the| |00000910| 43 6c 61 73 73 20 74 68 | 65 49 44 20 2d 2d 20 7d |Class th|eID -- }| |00000920| 09 5c 20 74 68 65 49 44 | 20 4d 55 53 54 20 62 65 |.\ theID| MUST be| |00000930| 20 61 20 68 61 6e 64 6c | 65 0d 09 77 6f 72 64 30 | a handl|e..word0| |00000940| 09 5c 20 72 6f 6f 6d 20 | 66 6f 72 20 72 65 73 75 |.\ room |for resu| |00000950| 6c 74 0d 09 74 68 65 43 | 6c 61 73 73 0d 09 74 68 |lt..theC|lass..th| |00000960| 65 49 44 0d 09 51 45 64 | 65 73 63 09 5c 20 77 65 |eID..QEd|esc.\ we| |00000970| 20 61 72 65 20 61 6c 77 | 61 79 73 20 75 73 69 6e | are alw|ays usin| |00000980| 67 20 74 68 69 73 20 74 | 61 72 67 65 74 20 68 65 |g this t|arget he| |00000990| 72 65 0d 09 6b 6f 6e 73 | 74 20 6b 41 75 74 6f 47 |re..kons|t kAutoG| |000009a0| 65 6e 65 72 61 74 65 52 | 65 74 75 72 6e 49 44 20 |enerateR|eturnID | |000009b0| 6d 61 6b 65 69 6e 74 0d | 09 30 09 5c 20 6b 6f 6e |makeint.|.0.\ kon| |000009c0| 73 74 20 41 6e 79 54 72 | 61 6e 73 61 63 74 69 6f |st AnyTr|ansactio| |000009d0| 6e 49 44 20 5c 20 6e 6f | 20 63 61 6c 6c 3f 0d 09 |nID \ no| call?..| |000009e0| 5e 62 61 73 65 09 5c 20 | 56 41 52 20 72 65 73 75 |^base.\ |VAR resu| |000009f0| 6c 74 20 77 69 6c 6c 20 | 62 65 20 6f 75 72 20 6f |lt will |be our o| |00000a00| 77 6e 20 69 76 61 72 20 | 72 65 63 6f 72 64 20 2c |wn ivar |record ,| |00000a10| 20 62 75 74 20 6f 6e 6c | 79 20 75 73 69 6e 67 20 | but onl|y using | |00000a20| 69 76 61 72 73 20 74 68 | 72 6f 75 67 68 20 6d 6f |ivars th|rough mo| |00000a30| 64 69 66 69 65 72 73 0d | 09 63 61 6c 6c 20 41 45 |difiers.|.call AE| |00000a40| 43 72 65 61 74 65 41 70 | 70 6c 65 45 76 65 6e 74 |CreateAp|pleEvent| |00000a50| 20 69 2d 3e 6c 0d 09 30 | 3c 3e 20 49 46 20 22 20 | i->l..0|<> IF " | |00000a60| 66 61 69 6c 65 64 20 74 | 6f 20 63 72 65 61 74 65 |failed t|o create| |00000a70| 20 41 70 70 6c 65 45 76 | 65 6e 74 22 20 63 72 20 | AppleEv|ent" cr | |00000a80| 54 48 45 4e 20 3b 6d 0d | 0d 5c 20 3a 6d 20 73 65 |THEN ;m.|.\ :m se| |00000a90| 74 3a 20 20 28 20 41 45 | 45 76 65 6e 74 43 6c 61 |t: ( AE|EventCla| |00000aa0| 73 73 20 2d 2d 20 29 20 | 5c 20 31 32 46 65 62 39 |ss -- ) |\ 12Feb9| |00000ab0| 34 20 44 42 48 20 69 6e | 63 6f 72 70 6f 72 61 74 |4 DBH in|corporat| |00000ac0| 65 64 20 69 6e 74 6f 20 | 6e 65 77 3a 0d 5c 09 70 |ed into |new:.\.p| |00000ad0| 75 74 3a 20 74 68 65 43 | 6c 61 73 73 20 3b 6d 0d |ut: theC|lass ;m.| |00000ae0| 0d 3a 6d 20 73 65 6e 64 | 3a 09 28 20 2d 2d 20 6f |.:m send|:.( -- o| |00000af0| 73 65 72 72 20 29 0d 09 | 77 6f 72 64 30 09 5c 20 |serr )..|word0.\ | |00000b00| 72 6f 6f 6d 20 66 6f 72 | 20 72 65 73 75 6c 74 0d |room for| result.| |00000b10| 09 5e 62 61 73 65 09 5c | 20 77 65 20 61 72 65 20 |.^base.\| we are | |00000b20| 73 65 6e 64 69 6e 67 20 | 6f 75 72 73 65 6c 66 2c |sending |ourself,| |00000b30| 20 6f 66 20 63 6f 75 72 | 73 65 0d 09 64 75 6d 6d | of cour|se..dumm| |00000b40| 79 52 65 70 6c 79 0d 09 | 6b 6f 6e 73 74 20 6b 41 |yReply..|konst kA| |00000b50| 45 57 61 69 74 52 65 70 | 6c 79 20 5c 20 73 65 6e |EWaitRep|ly \ sen| |00000b60| 64 6d 6f 64 65 2c 20 77 | 65 20 6d 75 73 74 20 77 |dmode, w|e must w| |00000b70| 61 69 74 20 66 6f 72 20 | 72 65 70 6c 79 20 73 6f |ait for |reply so| |00000b80| 20 77 65 20 64 6f 6e 27 | 74 20 63 6c 6f 62 62 65 | we don'|t clobbe| |00000b90| 72 20 74 68 65 20 68 61 | 6e 64 6c 65 0d 09 09 09 |r the ha|ndle....| |00000ba0| 09 09 09 5c 20 62 65 66 | 6f 72 65 20 51 45 20 68 |...\ bef|ore QE h| |00000bb0| 61 73 20 61 20 63 68 61 | 6e 63 65 20 74 6f 20 64 |as a cha|nce to d| |00000bc0| 65 61 6c 20 77 69 74 68 | 20 69 74 2e 0d 09 6b 6f |eal with| it...ko| |00000bd0| 6e 73 74 20 6b 41 45 4e | 6f 72 6d 61 6c 50 72 69 |nst kAEN|ormalPri| |00000be0| 6f 72 69 74 79 20 6d 61 | 6b 65 69 6e 74 09 09 5c |ority ma|keint..\| |00000bf0| 20 73 65 6e 64 50 72 69 | 6f 72 69 74 79 0d 09 6b | sendPri|ority..k| |00000c00| 6f 6e 73 74 20 6b 41 45 | 44 65 66 61 75 6c 74 54 |onst kAE|DefaultT| |00000c10| 69 6d 65 6f 75 74 09 5c | 20 74 69 6d 65 6f 75 74 |imeout.\| timeout| |00000c20| 69 6e 74 69 63 6b 73 20 | 20 73 65 65 20 49 4d 2d |inticks | see IM-| |00000c30| 56 49 20 36 2d 39 34 0d | 09 30 09 5c 20 69 64 6c |VI 6-94.|.0.\ idl| |00000c40| 65 70 72 6f 63 0d 09 30 | 09 5c 20 66 69 6c 74 65 |eproc..0|.\ filte| |00000c50| 72 70 72 6f 63 0d 09 63 | 61 6c 6c 20 41 45 53 65 |rproc..c|all AESe| |00000c60| 6e 64 20 69 2d 3e 6c 0d | 09 3b 6d 0d 09 0d 0d 3b |nd i->l.|.;m....;| |00000c70| 63 6c 61 73 73 0d 0d 0d | 3a 63 6c 61 73 73 20 51 |class...|:class Q| |00000c80| 45 6f 70 65 6e 20 73 75 | 70 65 72 7b 20 6f 62 6a |Eopen su|per{ obj| |00000c90| 65 63 74 20 7d 0d 0d 72 | 65 63 6f 72 64 0d 7b 09 |ect }..r|ecord.{.| |00000ca0| 62 79 74 65 20 66 69 6c | 65 4e 61 6d 65 4c 65 6e |byte fil|eNameLen| |00000cb0| 67 74 68 0d 09 33 32 20 | 62 79 74 65 73 20 66 69 |gth..32 |bytes fi| |00000cc0| 6c 65 4e 61 6d 65 0d 09 | 69 6e 74 20 76 6f 6c 52 |leName..|int volR| |00000cd0| 65 66 23 0d 09 76 61 72 | 20 64 69 72 49 44 0d 09 |ef#..var| dirID..| |00000ce0| 76 61 72 20 73 65 6c 53 | 74 61 72 74 0d 09 76 61 |var selS|tart..va| |00000cf0| 72 20 53 65 6c 45 6e 64 | 0d 7d 0d 0d 3a 6d 20 70 |r SelEnd|.}..:m p| |00000d00| 75 74 3a 20 7b 20 5e 6f | 62 6a 20 6e 31 20 6e 32 |ut: { ^o|bj n1 n2| |00000d10| 20 2d 2d 20 7d 09 5c 20 | 20 66 69 6c 65 20 6f 62 | -- }.\ | file ob| |00000d20| 6a 65 63 74 20 61 6e 64 | 20 64 65 73 69 72 65 64 |ject and| desired| |00000d30| 20 73 65 6c 65 63 74 69 | 6f 6e 20 72 61 6e 67 65 | selecti|on range| |00000d40| 0d 09 67 65 74 6e 61 6d | 65 3a 20 5e 6f 62 6a 20 |..getnam|e: ^obj | |00000d50| 20 28 20 61 64 64 72 20 | 6c 65 6e 20 29 0d 09 33 | ( addr |len )..3| |00000d60| 32 20 6d 69 6e 20 20 64 | 75 70 20 70 75 74 3a 20 |2 min d|up put: | |00000d70| 66 69 6c 65 4e 61 6d 65 | 4c 65 6e 67 74 68 20 20 |fileName|Length | |00000d80| 61 64 64 72 3a 20 66 69 | 6c 65 4e 61 6d 65 20 20 |addr: fi|leName | |00000d90| 73 77 61 70 20 20 63 6d | 6f 76 65 09 5c 20 61 6c |swap cm|ove.\ al| |00000da0| 61 20 63 74 6c 20 65 78 | 61 6d 70 6c 65 0d 09 0d |a ctl ex|ample...| |00000db0| 09 67 65 74 76 72 65 66 | 3a 20 5e 6f 62 6a 20 20 |.getvref|: ^obj | |00000dc0| 70 75 74 3a 20 76 6f 6c | 52 65 66 23 0d 09 67 65 |put: vol|Ref#..ge| |00000dd0| 74 64 69 72 49 44 3a 20 | 5e 6f 62 6a 20 20 70 75 |tdirID: |^obj pu| |00000de0| 74 3a 20 64 69 72 49 44 | 0d 09 6e 31 20 70 75 74 |t: dirID|..n1 put| |00000df0| 3a 20 73 65 6c 53 74 61 | 72 74 0d 09 6e 32 20 70 |: selSta|rt..n2 p| |00000e00| 75 74 3a 20 53 65 6c 45 | 6e 64 20 3b 6d 0d 0d 3a |ut: SelE|nd ;m..:| |00000e10| 6d 20 6c 65 6e 67 74 68 | 3a 20 20 28 20 2d 2d 20 |m length|: ( -- | |00000e20| 6e 20 29 20 20 5c 20 63 | 61 6e 27 74 20 73 65 6e |n ) \ c|an't sen| |00000e30| 64 20 74 68 69 73 20 6d | 65 73 73 61 67 65 20 74 |d this m|essage t| |00000e40| 6f 20 61 6e 20 69 76 61 | 72 21 21 0d 09 34 38 20 |o an iva|r!!..48 | |00000e50| 3b 6d 0d 0d 3b 63 6c 61 | 73 73 0d 0d 5c 20 54 68 |;m..;cla|ss..\ Th| |00000e60| 69 73 20 63 6c 61 73 73 | 20 77 69 6c 6c 20 62 65 |is class| will be| |00000e70| 20 75 73 65 64 20 61 73 | 20 6f 75 72 20 73 6f 6c | used as| our sol| |00000e80| 65 20 63 6f 6d 6d 75 6e | 69 63 61 74 69 6f 6e 20 |e commun|ication | |00000e90| 64 65 76 69 63 65 20 74 | 6f 20 51 45 20 77 68 65 |device t|o QE whe| |00000ea0| 6e 20 73 65 6e 64 69 6e | 67 20 41 45 73 2e 0d 3a |n sendin|g AEs..:| |00000eb0| 63 6c 61 73 73 20 51 45 | 20 73 75 70 65 72 7b 20 |class QE| super{ | |00000ec0| 6f 62 6a 65 63 74 20 7d | 0d 0d 09 41 70 70 6c 65 |object }|...Apple| |00000ed0| 45 76 65 6e 74 09 51 45 | 65 76 65 6e 74 0d 09 51 |Event.QE|event..Q| |00000ee0| 45 6f 70 65 6e 09 09 74 | 51 45 6f 70 65 6e 0d 09 |Eopen..t|QEopen..| |00000ef0| 73 74 72 69 6e 67 2b 09 | 09 51 45 73 74 72 0d 0d |string+.|.QEstr..| |00000f00| 3a 6d 20 6e 65 77 3a 0d | 09 6e 65 77 3a 20 51 45 |:m new:.|.new: QE| |00000f10| 73 74 72 0d 09 6e 65 77 | 3a 20 51 45 64 65 73 63 |str..new|: QEdesc| |00000f20| 09 09 5c 20 6e 6f 74 65 | 20 74 68 61 74 20 51 45 |..\ note| that QE| |00000f30| 64 65 73 63 20 69 73 20 | 61 20 70 75 62 6c 69 63 |desc is |a public| |00000f40| 20 6f 62 6a 65 63 74 0d | 09 3b 6d 0d 0d 3a 6d 20 | object.|.;m..:m | |00000f50| 72 65 6c 65 61 73 65 3a | 0d 09 72 65 6c 65 61 73 |release:|..releas| |00000f60| 65 3a 20 51 45 73 74 72 | 0d 09 72 65 6c 65 61 73 |e: QEstr|..releas| |00000f70| 65 3a 20 51 45 64 65 73 | 63 0d 09 3b 6d 0d 0d 3a |e: QEdes|c..;m..:| |00000f80| 6d 20 73 65 6e 64 3a 20 | 20 28 20 74 68 65 43 6c |m send: | ( theCl| |00000f90| 61 73 73 20 2d 2d 20 6f | 73 65 72 72 20 29 20 5c |ass -- o|serr ) \| |00000fa0| 20 31 32 46 65 62 39 34 | 20 44 42 48 20 6d 75 73 | 12Feb94| DBH mus| |00000fb0| 74 20 6e 65 77 3a 20 61 | 6e 64 20 72 65 6c 65 61 |t new: a|nd relea| |00000fc0| 73 65 3a 20 66 6f 72 20 | 65 61 63 68 20 73 65 6e |se: for |each sen| |00000fd0| 64 21 21 0d 09 68 61 6e | 64 6c 65 3a 20 51 45 73 |d!!..han|dle: QEs| |00000fe0| 74 72 20 28 20 49 44 20 | 29 20 20 6e 65 77 3a 20 |tr ( ID |) new: | |00000ff0| 51 45 65 76 65 6e 74 09 | 5c 20 61 6c 77 61 79 73 |QEevent.|\ always| |00001000| 20 75 73 69 6e 67 20 51 | 45 73 74 72 20 68 61 6e | using Q|Estr han| |00001010| 64 6c 65 20 61 73 20 6f | 75 72 20 49 44 2e 20 20 |dle as o|ur ID. | |00001020| 0d 09 73 65 6e 64 3a 20 | 51 45 65 76 65 6e 74 0d |..send: |QEevent.| |00001030| 09 63 6c 65 61 72 3a 20 | 51 45 73 74 72 09 5c 20 |.clear: |QEstr.\ | |00001040| 31 32 46 65 62 39 34 20 | 44 42 48 20 6d 75 73 74 |12Feb94 |DBH must| |00001050| 20 61 6c 77 61 79 73 20 | 63 6c 65 61 72 20 74 68 | always |clear th| |00001060| 65 20 73 74 72 69 6e 67 | 20 62 65 63 61 75 73 65 |e string| because| |00001070| 20 6e 65 78 74 20 61 63 | 74 69 6f 6e 0d 09 09 09 | next ac|tion....| |00001080| 09 09 5c 20 6d 61 79 20 | 62 65 20 74 6f 20 73 69 |..\ may |be to si| |00001090| 6d 70 6c 79 20 61 64 64 | 20 61 73 20 77 68 65 6e |mply add| as when| |000010a0| 20 64 6f 69 6e 67 20 61 | 20 74 65 78 74 3a 0d 09 | doing a| text:..| |000010b0| 72 65 6c 65 61 73 65 3a | 20 51 45 65 76 65 6e 74 |release:| QEevent| |000010c0| 0d 09 3b 6d 0d 0d 3a 6d | 20 6f 70 65 6e 46 69 6c |..;m..:m| openFil| |000010d0| 65 3a 20 20 28 20 5e 6f | 62 6a 20 6e 31 20 6e 32 |e: ( ^o|bj n1 n2| |000010e0| 20 2d 2d 20 6f 73 65 72 | 72 20 29 09 5c 20 66 69 | -- oser|r ).\ fi| |000010f0| 6c 65 20 6f 62 6a 65 63 | 74 20 61 6e 64 20 73 65 |le objec|t and se| |00001100| 6c 65 63 74 69 6f 6e 20 | 72 61 6e 67 65 0d 09 70 |lection |range..p| |00001110| 75 74 3a 20 74 51 45 6f | 70 65 6e 0d 09 61 64 64 |ut: tQEo|pen..add| |00001120| 72 3a 20 74 51 45 6f 70 | 65 6e 20 20 6c 65 6e 67 |r: tQEop|en leng| |00001130| 74 68 3a 20 74 51 45 6f | 70 65 6e 20 20 70 75 74 |th: tQEo|pen put| |00001140| 3a 20 51 45 73 74 72 0d | 09 27 74 79 70 65 20 4f |: QEstr.|.'type O| |00001150| 50 45 4e 20 20 73 65 6e | 64 3a 20 73 65 6c 66 20 |PEN sen|d: self | |00001160| 3b 6d 0d 0d 3a 6d 20 74 | 65 78 74 3a 20 20 28 20 |;m..:m t|ext: ( | |00001170| 61 64 64 72 20 6c 65 6e | 20 2d 2d 20 29 09 09 5c |addr len| -- )..\| |00001180| 20 74 65 78 74 20 74 6f | 20 62 65 20 22 74 79 70 | text to| be "typ| |00001190| 65 64 22 20 69 6e 74 6f | 20 66 72 6f 6e 74 20 51 |ed" into| front Q| |000011a0| 45 20 77 69 6e 64 6f 77 | 0d 09 09 09 09 09 09 09 |E window|........| |000011b0| 09 09 5c 20 69 66 20 6e | 6f 20 77 69 6e 64 6f 77 |..\ if n|o window| |000011c0| 20 6f 70 65 6e 20 69 6e | 20 51 45 2c 20 6e 6f 20 | open in| QE, no | |000011d0| 61 63 74 69 6f 6e 20 66 | 72 6f 6d 20 51 45 2c 20 |action f|rom QE, | |000011e0| 6a 75 73 74 20 61 20 62 | 65 65 70 0d 5c 09 70 75 |just a b|eep.\.pu| |000011f0| 74 3a 20 51 45 73 74 72 | 09 20 5c 20 32 37 4a 61 |t: QEstr|. \ 27Ja| |00001200| 6e 39 34 20 44 42 48 0d | 5c 09 27 74 79 70 65 20 |n94 DBH.|\.'type | |00001210| 54 45 58 54 20 73 65 6e | 64 3a 20 73 65 6c 66 20 |TEXT sen|d: self | |00001220| 3b 6d 0d 09 61 64 64 3a | 20 51 45 73 74 72 20 3b |;m..add:| QEstr ;| |00001230| 6d 0d 0d 76 61 72 69 61 | 62 6c 65 20 65 6d 69 74 |m..varia|ble emit| |00001240| 76 61 72 20 34 20 61 6c | 6c 6f 74 0d 0d 3a 6d 20 |var 4 al|lot..:m | |00001250| 63 72 3a 09 28 20 2d 2d | 20 6f 73 65 72 72 20 29 |cr:.( --| oserr )| |00001260| 0d 09 31 33 20 65 6d 69 | 74 76 61 72 20 63 21 0d |..13 emi|tvar c!.| |00001270| 09 65 6d 69 74 76 61 72 | 20 31 20 74 65 78 74 3a |.emitvar| 1 text:| |00001280| 20 73 65 6c 66 0d 09 27 | 74 79 70 65 20 54 45 58 | self..'|type TEX| |00001290| 54 20 73 65 6e 64 3a 20 | 73 65 6c 66 0d 09 63 6c |T send: |self..cl| |000012a0| 65 61 72 3a 20 51 45 73 | 74 72 20 3b 6d 0d 0d 3a |ear: QEs|tr ;m..:| |000012b0| 6d 20 6e 65 77 57 69 6e | 64 6f 77 3a 20 28 20 61 |m newWin|dow: ( a| |000012c0| 64 64 72 20 6c 65 6e 20 | 2d 2d 20 6f 73 65 72 72 |ddr len |-- oserr| |000012d0| 20 29 09 5c 20 6f 70 65 | 6e 73 20 61 20 6e 65 77 | ).\ ope|ns a new| |000012e0| 20 77 69 6e 64 6f 77 20 | 69 6e 20 51 45 2c 20 64 | window |in QE, d| |000012f0| 6f 65 73 20 6e 6f 74 20 | 63 72 65 61 74 65 20 61 |oes not |create a| |00001300| 20 66 69 6c 65 20 6f 6e | 20 64 69 73 6b 0d 09 09 | file on| disk...| |00001310| 09 09 09 09 09 09 09 5c | 20 69 66 20 6e 6f 20 6d |.......\| if no m| |00001320| 6f 72 65 20 61 76 61 69 | 6c 61 62 6c 65 20 77 69 |ore avai|lable wi| |00001330| 6e 64 6f 77 73 20 69 6e | 20 51 45 2c 20 6e 6f 20 |ndows in| QE, no | |00001340| 61 63 74 69 6f 6e 2c 20 | 6a 75 73 74 20 61 20 62 |action, |just a b| |00001350| 65 65 70 0d 09 70 75 74 | 3a 20 51 45 73 74 72 0d |eep..put|: QEstr.| |00001360| 09 27 74 79 70 65 20 4e | 45 57 46 20 73 65 6e 64 |.'type N|EWF send| |00001370| 3a 20 73 65 6c 66 20 3b | 6d 0d 0d 3a 6d 20 70 75 |: self ;|m..:m pu| |00001380| 74 52 65 63 74 3a 20 20 | 28 20 6c 20 74 20 72 20 |tRect: |( l t r | |00001390| 62 20 2d 2d 20 6f 73 65 | 72 72 20 29 09 5c 20 77 |b -- ose|rr ).\ w| |000013a0| 69 6c 6c 20 73 65 74 20 | 74 68 65 20 66 72 6f 6e |ill set |the fron| |000013b0| 74 20 51 45 20 77 69 6e | 64 6f 77 20 70 6f 72 74 |t QE win|dow port| |000013c0| 72 65 63 74 20 74 6f 20 | 74 68 65 73 65 20 76 61 |rect to |these va| |000013d0| 6c 75 65 73 0d 09 09 09 | 09 09 09 09 09 09 5c 20 |lues....|......\ | |000013e0| 69 66 20 6e 6f 20 77 69 | 6e 64 6f 77 20 6f 70 65 |if no wi|ndow ope| |000013f0| 6e 20 69 6e 20 51 45 2c | 20 6e 6f 20 61 63 74 69 |n in QE,| no acti| |00001400| 6f 6e 20 66 72 6f 6d 20 | 51 45 2c 20 6a 75 73 74 |on from |QE, just| |00001410| 20 61 20 62 65 65 70 0d | 09 70 75 74 3a 20 74 65 | a beep.|.put: te| |00001420| 6d 70 72 65 63 74 0d 09 | 61 64 64 72 3a 20 74 65 |mprect..|addr: te| |00001430| 6d 70 72 65 63 74 20 38 | 20 70 75 74 3a 20 51 45 |mprect 8| put: QE| |00001440| 73 74 72 0d 09 27 74 79 | 70 65 20 52 45 43 54 20 |str..'ty|pe RECT | |00001450| 20 73 65 6e 64 3a 20 73 | 65 6c 66 20 3b 6d 0d 0d | send: s|elf ;m..| |00001460| 3a 6d 20 66 69 6e 64 3a | 20 20 28 20 61 64 64 72 |:m find:| ( addr| |00001470| 20 6c 65 6e 20 2d 2d 20 | 6f 73 65 72 72 20 29 20 | len -- |oserr ) | |00001480| 20 5c 20 77 69 6c 6c 20 | 72 65 71 75 65 73 74 20 | \ will |request | |00001490| 74 68 61 74 20 51 45 20 | 66 69 6e 64 20 66 69 72 |that QE |find fir| |000014a0| 73 74 20 6f 63 63 75 72 | 72 65 6e 63 65 20 6f 66 |st occur|rence of| |000014b0| 0d 09 5c 20 74 68 65 20 | 67 69 76 65 6e 20 74 65 |..\ the |given te| |000014c0| 78 74 20 69 6e 20 74 68 | 65 20 66 72 6f 6e 74 20 |xt in th|e front | |000014d0| 71 65 20 77 69 6e 64 6f | 77 2e 20 20 57 65 20 61 |qe windo|w. We a| |000014e0| 72 65 20 6c 69 6d 69 74 | 65 64 20 74 6f 20 73 74 |re limit|ed to st| |000014f0| 72 69 6e 67 73 20 6f 66 | 20 6c 65 6e 67 74 68 0d |rings of| length.| |00001500| 09 5c 20 32 35 35 20 61 | 6e 64 20 6c 65 73 73 2e |.\ 255 a|nd less.| |00001510| 20 20 41 6c 6c 20 73 65 | 61 72 63 68 65 73 20 77 | All se|arches w| |00001520| 69 6c 6c 20 62 65 20 63 | 61 73 65 20 69 6e 73 65 |ill be c|ase inse| |00001530| 6e 73 69 74 69 76 65 2e | 0d 09 70 75 74 3a 20 51 |nsitive.|..put: Q| |00001540| 45 73 74 72 0d 09 3e 75 | 63 3a 20 51 45 73 74 72 |Estr..>u|c: QEstr| |00001550| 09 09 09 5c 20 51 45 20 | 6e 65 65 64 73 20 61 6c |...\ QE |needs al| |00001560| 6c 20 75 70 70 65 72 20 | 63 61 73 65 20 66 6f 72 |l upper |case for| |00001570| 20 74 68 69 73 0d 09 27 | 74 79 70 65 20 46 49 4e | this..'|type FIN| |00001580| 44 20 73 65 6e 64 3a 20 | 73 65 6c 66 20 3b 6d 0d |D send: |self ;m.| |00001590| 09 0d 3b 63 6c 61 73 73 | 0d 0d 51 45 20 74 51 45 |..;class|..QE tQE| |000015a0| 09 09 5c 20 77 65 20 6e | 6f 77 20 68 61 76 65 20 |..\ we n|ow have | |000015b0| 6a 75 73 74 20 6f 6e 65 | 20 6f 62 6a 65 63 74 20 |just one| object | |000015c0| 66 6f 72 20 73 65 6e 64 | 69 6e 67 20 63 6f 6d 6d |for send|ing comm| |000015d0| 61 6e 64 73 20 74 6f 20 | 51 75 69 63 6b 20 45 64 |ands to |Quick Ed| |000015e0| 69 74 0d 0d 0d 3a 20 69 | 6e 69 74 74 51 45 0d 09 |it...: i|nittQE..| |000015f0| 69 6e 73 74 6c 64 3f 20 | 20 3f 45 58 49 54 09 09 |instld? | ?EXIT..| |00001600| 09 5c 20 4d 75 73 74 6e | 27 74 20 64 6f 20 74 68 |.\ Mustn|'t do th| |00001610| 69 73 20 69 6e 20 69 6e | 73 74 61 6c 6c 65 64 20 |is in in|stalled | |00001620| 61 70 70 73 0d 09 41 70 | 70 6c 65 45 76 65 6e 74 |apps..Ap|pleEvent| |00001630| 73 3f 20 20 30 45 58 49 | 54 0d 09 6e 65 77 3a 20 |s? 0EXI|T..new: | |00001640| 74 51 45 20 20 3b 0d 0d | 69 6e 69 74 74 51 45 0d |tQE ;..|inittQE.| |00001650| 20 0d 27 20 69 6e 69 74 | 74 51 45 20 61 64 64 3a | .' init|tQE add:| |00001660| 20 69 6e 69 74 5f 61 63 | 74 69 6f 6e 73 0d 0d 65 | init_ac|tions..e| |00001670| 6e 64 6c 6f 61 64 0d 0d | 2b 65 63 68 6f 0d 0d 66 |ndload..|+echo..f| |00001680| 69 6c 65 20 74 65 73 74 | 66 69 6c 65 0d 0d 3a 20 |ile test|file..: | |00001690| 47 4f 31 0d 09 27 74 79 | 70 65 20 54 45 58 54 20 |GO1..'ty|pe TEXT | |000016a0| 31 20 73 74 64 67 65 74 | 3a 20 74 65 73 74 66 69 |1 stdget|: testfi| |000016b0| 6c 65 20 2e 20 20 63 72 | 0d 09 74 65 73 74 66 69 |le . cr|..testfi| |000016c0| 6c 65 20 31 30 20 32 30 | 20 20 6f 70 65 6e 46 69 |le 10 20| openFi| |000016d0| 6c 65 3a 20 74 51 45 20 | 2e 20 3b 0d 0d 3a 20 47 |le: tQE |. ;..: G| |000016e0| 4f 32 0d 09 22 20 48 65 | 6c 6c 6f 20 57 6f 72 6c |O2.." He|llo Worl| |000016f0| 64 22 20 74 65 78 74 3a | 20 74 51 45 20 63 72 3a |d" text:| tQE cr:| |00001700| 20 74 51 45 20 2e 20 3b | 09 5c 20 6e 6f 74 65 20 | tQE . ;|.\ note | |00001710| 68 6f 77 20 77 65 20 6d | 75 73 74 20 61 6c 77 61 |how we m|ust alwa| |00001720| 79 73 20 65 6e 64 20 77 | 69 74 68 20 61 20 63 72 |ys end w|ith a cr| |00001730| 3a 20 74 6f 20 73 65 6e | 64 3a 0d 0d 3a 20 47 4f |: to sen|d:..: GO| |00001740| 33 0d 09 22 20 4d 79 20 | 46 69 6c 65 20 4e 61 6d |3.." My |File Nam| |00001750| 65 22 20 6e 65 77 77 69 | 6e 64 6f 77 3a 20 74 51 |e" newwi|ndow: tQ| |00001760| 45 20 2e 20 3b 0d 0d 3a | 20 47 4f 34 0d 09 31 30 |E . ;..:| GO4..10| |00001770| 30 20 35 30 20 33 30 30 | 20 33 35 30 20 70 75 74 |0 50 300| 350 put| |00001780| 72 65 63 74 3a 20 74 51 | 45 20 2e 20 3b 0d 0d 65 |rect: tQ|E . ;..e| |00001790| 6e 64 6c 6f 61 64 0d 0d | 2a 2a 2a 2a 2a 2a 20 47 |ndload..|****** G| |000017a0| 45 4e 45 52 41 4c 20 43 | 4f 4d 4d 45 4e 54 53 20 |ENERAL C|OMMENTS | |000017b0| 2a 2a 2a 2a 2a 2a 2a 0d | 0d 0d 49 74 20 69 73 20 |*******.|..It is | |000017c0| 76 65 72 79 20 69 6d 70 | 6f 72 74 61 6e 74 20 74 |very imp|ortant t| |000017d0| 6f 20 75 6e 64 65 72 73 | 74 61 6e 64 20 74 68 65 |o unders|tand the| |000017e0| 20 22 74 72 69 63 6b 22 | 20 62 65 69 6e 67 20 75 | "trick"| being u| |000017f0| 73 65 64 20 68 65 72 65 | 20 66 6f 72 20 63 6f 6d |sed here| for com| |00001800| 6d 75 6e 69 63 61 74 69 | 6f 6e 20 62 65 74 77 65 |municati|on betwe| |00001810| 65 6e 20 4d 6f 70 73 20 | 61 6e 64 20 0d 51 45 2e |en Mops |and .QE.| |00001820| 20 20 57 65 20 66 6f 6c | 6c 6f 77 20 41 70 70 6c | We fol|low Appl| |00001830| 65 27 73 20 72 65 63 69 | 70 65 20 66 6f 72 20 65 |e's reci|pe for e| |00001840| 76 65 72 79 74 68 69 6e | 67 20 65 78 63 65 70 74 |verythin|g except| |00001850| 20 66 6f 72 20 74 68 65 | 20 64 65 73 63 72 69 70 | for the| descrip| |00001860| 74 6f 72 20 72 65 63 6f | 72 64 20 73 63 68 65 6d |tor reco|rd schem| |00001870| 65 2e 20 20 49 6e 73 74 | 65 61 64 20 6f 66 20 0d |e. Inst|ead of .| |00001880| 62 75 69 6c 64 69 6e 67 | 20 61 6e 64 20 74 68 65 |building| and the| |00001890| 6e 20 64 65 63 69 70 68 | 65 72 69 6e 67 20 74 68 |n deciph|ering th| |000018a0| 65 20 73 65 65 6d 69 6e | 67 6c 79 20 6f 76 65 72 |e seemin|gly over| |000018b0| 6c 79 20 63 6f 6d 70 6c | 65 78 20 64 65 73 63 72 |ly compl|ex descr| |000018c0| 69 70 74 6f 72 20 72 65 | 63 6f 72 64 73 20 66 6f |iptor re|cords fo| |000018d0| 72 20 65 61 63 68 20 41 | 45 2c 20 69 74 20 73 65 |r each A|E, it se| |000018e0| 65 6d 65 64 20 0d 74 6f | 20 6d 65 20 74 6f 20 62 |emed .to| me to b| |000018f0| 65 20 6d 75 63 68 20 6d | 6f 72 65 20 73 74 72 61 |e much m|ore stra| |00001900| 69 67 68 74 66 6f 72 77 | 61 72 64 20 74 6f 20 6a |ightforw|ard to j| |00001910| 75 73 74 20 73 65 6e 64 | 20 61 20 68 61 6e 64 6c |ust send| a handl| |00001920| 65 20 74 6f 20 77 68 61 | 74 65 76 65 72 20 64 61 |e to wha|tever da| |00001930| 74 61 20 73 74 72 75 63 | 74 75 72 65 20 77 65 20 |ta struc|ture we | |00001940| 77 69 73 68 2e 20 20 0d | 53 69 6e 63 65 20 77 65 |wish. .|Since we| |00001950| 20 63 6f 6e 74 72 6f 6c | 20 65 76 65 72 79 74 68 | control| everyth| |00001960| 69 6e 67 20 61 74 20 62 | 6f 74 68 20 65 6e 64 73 |ing at b|oth ends| |00001970| 20 28 4d 6f 70 73 20 61 | 6e 64 20 51 45 29 2c 20 | (Mops a|nd QE), | |00001980| 74 68 65 6e 20 77 68 79 | 20 67 6f 20 74 68 72 6f |then why| go thro| |00001990| 75 67 68 20 61 6c 6c 20 | 6f 66 20 74 68 65 20 67 |ugh all |of the g| |000019a0| 79 72 61 74 69 6f 6e 73 | 20 6f 66 20 0d 74 68 65 |yrations| of .the| |000019b0| 20 41 45 64 65 73 63 20 | 72 65 63 6f 72 64 20 68 | AEdesc |record h| |000019c0| 61 6e 64 6c 69 6e 67 3f | 20 20 57 65 20 61 76 6f |andling?| We avo| |000019d0| 69 64 20 68 61 76 69 6e | 67 20 74 6f 20 64 65 61 |id havin|g to dea| |000019e0| 6c 20 77 69 74 68 20 61 | 6e 79 20 6f 66 20 74 68 |l with a|ny of th| |000019f0| 65 20 41 45 50 75 74 50 | 61 72 61 6d 2f 41 45 47 |e AEPutP|aram/AEG| |00001a00| 65 74 50 61 72 61 6d 20 | 65 74 63 2e 20 20 0d 41 |etParam |etc. .A| |00001a10| 6c 73 6f 2c 20 77 65 20 | 64 6f 6e 27 74 20 65 76 |lso, we |don't ev| |00001a20| 65 6e 20 68 61 76 65 20 | 74 6f 20 64 65 61 6c 20 |en have |to deal | |00001a30| 77 69 74 68 20 41 45 49 | 6e 73 74 61 6c 6c 45 76 |with AEI|nstallEv| |00001a40| 65 6e 74 48 61 6e 64 6c | 65 72 20 6f 72 20 41 45 |entHandl|er or AE| |00001a50| 50 72 6f 63 65 73 73 41 | 70 70 6c 65 45 76 65 6e |ProcessA|ppleEven| |00001a60| 74 21 0d 0d 57 68 61 74 | 20 77 65 20 64 6f 20 69 |t!..What| we do i| |00001a70| 73 20 74 6f 20 6f 6e 6c | 79 20 64 65 66 69 6e 65 |s to onl|y define| |00001a80| 20 6f 75 72 20 41 70 70 | 6c 65 45 76 65 6e 74 73 | our App|leEvents| |00001a90| 20 62 79 20 63 6c 61 73 | 73 20 61 6e 64 20 6e 6f | by clas|s and no| |00001aa0| 74 20 62 79 20 61 6c 73 | 6f 20 70 72 6f 76 69 64 |t by als|o provid| |00001ab0| 69 6e 67 20 61 6e 20 49 | 44 2e 20 20 54 68 69 73 |ing an I|D. This| |00001ac0| 20 64 6f 65 73 20 0d 6e | 6f 74 20 73 65 65 6d 20 | does .n|ot seem | |00001ad0| 74 6f 20 62 65 20 6d 75 | 63 68 20 6f 66 20 61 20 |to be mu|ch of a | |00001ae0| 6c 69 6d 69 74 61 74 69 | 6f 6e 20 6f 6e 20 64 65 |limitati|on on de| |00001af0| 66 69 6e 69 6e 67 20 41 | 45 73 20 73 69 6e 63 65 |fining A|Es since| |00001b00| 20 74 68 65 72 65 20 61 | 72 65 20 63 65 72 74 61 | there a|re certa| |00001b10| 69 6e 6c 79 20 70 6c 65 | 6e 74 79 20 6f 66 20 64 |inly ple|nty of d| |00001b20| 69 66 66 65 72 65 6e 74 | 20 0d 63 6c 61 73 73 65 |ifferent| .classe| |00001b30| 73 20 77 65 20 63 6f 75 | 6c 64 20 64 65 66 69 6e |s we cou|ld defin| |00001b40| 65 20 77 69 74 68 20 74 | 68 65 20 33 32 20 62 69 |e with t|he 32 bi| |00001b50| 74 20 63 6c 61 73 73 20 | 69 64 65 6e 74 69 66 69 |t class |identifi| |00001b60| 65 72 2e 20 20 4d 6f 73 | 74 20 69 6d 70 6f 72 74 |er. Mos|t import| |00001b70| 61 6e 74 6c 79 2c 20 77 | 65 20 68 61 76 65 20 6e |antly, w|e have n| |00001b80| 6f 77 20 66 72 65 65 64 | 20 75 70 20 0d 74 68 65 |ow freed| up .the| |00001b90| 20 49 44 20 6f 66 20 6f | 75 72 20 41 45 20 66 6f | ID of o|ur AE fo| |00001ba0| 72 20 75 73 65 20 69 6e | 20 61 6e 79 20 77 61 79 |r use in| any way| |00001bb0| 20 74 68 61 74 20 77 65 | 20 77 69 73 68 2c 20 61 | that we| wish, a| |00001bc0| 6e 64 20 77 65 20 77 69 | 73 68 20 74 6f 20 6d 61 |nd we wi|sh to ma| |00001bd0| 6b 65 20 6f 75 72 20 49 | 44 20 74 68 65 20 68 61 |ke our I|D the ha| |00001be0| 6e 64 6c 65 20 74 6f 20 | 74 68 65 20 64 61 74 61 |ndle to |the data| |00001bf0| 20 0d 77 65 20 77 61 6e | 74 20 74 6f 20 70 61 73 | .we wan|t to pas| |00001c00| 73 20 66 72 6f 6d 20 4d | 6f 70 73 20 74 6f 20 51 |s from M|ops to Q| |00001c10| 45 20 6f 72 20 76 69 63 | 65 20 76 65 72 73 61 2e |E or vic|e versa.| |00001c20| 20 20 49 20 64 6f 6e 27 | 74 20 6b 6e 6f 77 20 77 | I don'|t know w| |00001c30| 68 61 74 20 6b 69 6e 64 | 20 6f 66 20 70 72 6f 62 |hat kind| of prob| |00001c40| 6c 65 6d 73 20 74 68 69 | 73 20 63 6f 75 6c 64 20 |lems thi|s could | |00001c50| 63 61 75 73 65 2e 20 20 | 0d 54 6f 20 64 61 74 65 |cause. |.To date| |00001c60| 2c 20 49 20 68 61 76 65 | 20 6e 6f 74 69 63 65 64 |, I have| noticed| |00001c70| 20 6e 6f 20 70 72 6f 62 | 6c 65 6d 73 2e 20 20 42 | no prob|lems. B| |00001c80| 75 74 20 74 68 69 73 20 | 64 6f 65 73 20 6e 6f 74 |ut this |does not| |00001c90| 20 73 65 65 6d 20 74 6f | 20 62 65 20 74 68 65 20 | seem to| be the | |00001ca0| 77 61 79 20 41 70 70 6c | 65 20 69 6e 74 65 6e 64 |way Appl|e intend| |00001cb0| 65 64 2e 20 20 53 6f 20 | 0d 62 65 77 61 72 65 2e |ed. So |.beware.| |00001cc0| 20 20 4e 6f 74 65 20 74 | 68 61 74 20 62 6f 74 68 | Note t|hat both| |00001cd0| 20 4d 6f 70 73 20 61 6e | 64 20 51 45 20 61 63 63 | Mops an|d QE acc| |00001ce0| 6f 6d 70 6c 69 73 68 20 | 41 45 20 63 6f 6d 6d 75 |omplish |AE commu| |00001cf0| 6e 69 63 61 74 69 6f 6e | 20 69 6e 20 65 78 61 63 |nication| in exac| |00001d00| 74 6c 79 20 74 68 65 20 | 73 61 6d 65 20 28 6e 6f |tly the |same (no| |00001d10| 6e 2d 73 74 61 6e 64 61 | 72 64 29 20 0d 77 61 79 |n-standa|rd) .way| |00001d20| 2e 20 20 0d 0d 54 68 65 | 20 6d 65 6d 6f 72 79 20 |. ..The| memory | |00001d30| 70 72 6f 62 6c 65 6d 20 | 74 68 61 74 20 62 6f 74 |problem |that bot| |00001d40| 68 20 51 45 20 32 2e 34 | 20 61 6e 64 20 74 68 65 |h QE 2.4| and the| |00001d50| 20 6f 72 69 67 69 6e 61 | 6c 20 4d 6f 70 73 20 32 | origina|l Mops 2| |00001d60| 2e 34 20 72 65 6c 65 61 | 73 65 20 73 75 66 66 65 |.4 relea|se suffe| |00001d70| 72 65 64 20 77 61 73 20 | 6e 6f 74 20 72 65 6c 61 |red was |not rela| |00001d80| 74 65 64 0d 74 6f 20 74 | 68 69 73 20 73 63 68 65 |ted.to t|his sche| |00001d90| 6d 65 2e 20 20 54 68 61 | 74 20 70 72 6f 62 6c 65 |me. Tha|t proble| |00001da0| 6d 20 65 78 69 73 74 65 | 64 20 64 75 65 20 74 6f |m existe|d due to| |00001db0| 20 74 68 65 20 6c 61 63 | 6b 20 6f 66 20 75 6e 64 | the lac|k of und| |00001dc0| 65 72 73 74 61 6e 64 69 | 6e 67 20 6f 6e 20 6d 79 |erstandi|ng on my| |00001dd0| 20 70 61 72 74 20 6f 66 | 20 74 68 65 20 6e 65 65 | part of| the nee| |00001de0| 64 20 66 6f 72 0d 64 69 | 73 70 6f 73 69 6e 67 20 |d for.di|sposing | |00001df0| 41 70 70 6c 65 45 76 65 | 6e 74 73 20 61 6e 64 20 |AppleEve|nts and | |00001e00| 41 45 20 52 65 70 6c 69 | 65 73 20 61 66 74 65 72 |AE Repli|es after| |00001e10| 20 65 61 63 68 20 41 45 | 53 65 6e 64 2e 20 20 42 | each AE|Send. B| |00001e20| 75 74 20 6e 6f 74 65 20 | 74 68 61 74 20 77 65 20 |ut note |that we | |00001e30| 64 6f 20 6e 6f 74 20 6e | 65 65 64 20 74 6f 20 63 |do not n|eed to c| |00001e40| 72 65 61 74 65 0d 61 6e | 64 20 64 69 73 70 6f 73 |reate.an|d dispos| |00001e50| 65 20 6f 75 72 20 64 65 | 73 63 72 69 70 74 6f 72 |e our de|scriptor| |00001e60| 20 72 65 63 6f 72 64 20 | 69 74 73 65 6c 66 2e 20 | record |itself. | |00001e70| 20 42 75 74 20 77 65 20 | 6d 75 73 74 20 75 73 65 | But we |must use| |00001e80| 20 41 45 44 69 73 70 6f | 73 65 44 65 73 63 20 74 | AEDispo|seDesc t| |00001e90| 6f 20 64 69 73 70 6f 73 | 65 20 6f 66 20 74 68 65 |o dispos|e of the| |00001ea0| 20 0d 41 70 70 6c 65 45 | 76 65 6e 74 20 61 6e 64 | .AppleE|vent and| |00001eb0| 20 41 45 52 65 70 6c 79 | 20 28 20 6e 6f 20 41 45 | AEReply| ( no AE| |00001ec0| 44 69 73 70 6f 73 65 41 | 70 70 6c 65 45 76 65 6e |DisposeA|ppleEven| |00001ed0| 74 20 65 78 69 73 74 73 | 2c 20 61 70 70 61 72 65 |t exists|, appare| |00001ee0| 6e 74 6c 79 29 2e 0d 0d | 2d 44 6f 75 67 20 48 6f |ntly)...|-Doug Ho| |00001ef0| 66 66 6d 61 6e 20 20 5c | 20 31 32 46 65 62 39 34 |ffman \| 12Feb94| |00001f00| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........| |00001f10| 01 60 0a 86 01 42 7b 50 | 01 1e 62 67 31 01 66 22 |.`...B{P|..bg1.f"| |00001f20| 50 01 26 3a 27 5a 5f 2d | 50 01 26 62 2f 01 21 6e |P.&:'Z_-|P.&b/.!n| |00001f30| 0b 41 70 70 6c 65 45 76 | 65 6e 74 73 02 00 00 00 |.AppleEv|ents....| |00001f40| 50 61 72 74 53 49 54 78 | 00 00 00 00 00 00 00 00 |PartSITx|........| |00001f50| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......| |00001f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001f70| 00 00 ab 06 23 5f 00 00 | 00 00 00 00 01 1e 24 01 |....#_..|......$.| |00001f80| 66 6a 96 01 67 44 52 57 | 79 50 35 79 6d 01 60 1e |fj..gDRW|yP5ym.`.| |00001f90| 86 01 43 62 52 51 32 4f | 36 6d a6 51 01 be a8 ee |..CbRQ2O|6m.Q....| |00001fa0| 01 67 10 57 79 50 39 01 | 66 d2 37 5b 31 01 66 1c |.g.WyP9.|f.7[1.f.| |00001fb0| 7f 7e c7 26 90 1a 2f 2d | fe 0c 4e ad 33 22 2d 40 |.~.&../-|..N.3"-@| |00001fc0| ff fc 4f ef 00 10 4a ae | ff fc 8e 01 00 88 7f 7e |..O...J.|.......~| |00001fd0| 01 00 54 86 01 42 72 50 | 01 09 da f1 6d 01 67 1c |..T..BrP|....m.g.| |00001fe0| 7f 7e c7 26 90 3b 01 67 | 50 76 28 29 86 12 0b ea |.~.&.;.g|Pv()....| |00001ff0| 48 6e 28 60 7f 32 12 00 | 58 4e 91 76 25 29 86 3c |Hn(`.2..|XN.v%).<| |00002000| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........| |00002010| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 00 00 |........|........| |00002020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00002030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00002040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00002050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00002060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00002070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| +--------+-------------------------+-------------------------+--------+--------+